# -*- coding: utf-8; mode: snippet -*-
# name: (defadvice ...)
# key: defadvice.select
# contributor: Shuguang Sun
# --
(defadvice ${1:oldFun} (${2:$$(yas-choose-value '("before" "around" "after"
           "activation"
           "deactivation" ))} ${1:$(yas/substr yas-text "[^ ]*")}-hack ${3:$$(yas-choose-value '("first" "last" "NUMBER"))} ${4:${5:active} ${6:compile}})
  (message "original-args=%s" (ad-get-args 0))
  ;; @see https://ftp.gnu.org/old-gnu/Manuals/elisp-manual-21-2.8/html_node/elisp_220.html
  ;; you can use (ad-get-arg 0) and (ad-set-arg 0) to tweak the arguments
  $0
  ;; ad-do-it  ;; for around
  )
